package com.action;

import com.dao.ITabDepositscheduleDao;
import com.dao.ITabSuccessfuldeliveryofaonetimeDao;
import com.opensymphony.xwork2.ModelDriven;
import com.po.TabDepositschedule;
import com.po.TabSuccessfuldeliveryofaonetime;

public class TabSuccessfuldeliveryofaonetimeAction extends BaseAction implements ModelDriven<TabSuccessfuldeliveryofaonetime>
{
	TabSuccessfuldeliveryofaonetime form = new TabSuccessfuldeliveryofaonetime();
	public TabSuccessfuldeliveryofaonetime getModel(){
		return form;
	}

	private ITabSuccessfuldeliveryofaonetimeDao tabSuccessfuldeliveryofaonetimeDao;
	public void setTabSuccessfuldeliveryofaonetimeDao(ITabSuccessfuldeliveryofaonetimeDao tabSuccessfuldeliveryofaonetimeDao){
		this.tabSuccessfuldeliveryofaonetimeDao = tabSuccessfuldeliveryofaonetimeDao;
	}

	public String findByList(){
		form.setPager_count(tabSuccessfuldeliveryofaonetimeDao.findByCount(form));
		form.setTabsdolist(tabSuccessfuldeliveryofaonetimeDao.findByList(form));
		return SUCCESS;
	}

	public String deleteObject(){
		tabSuccessfuldeliveryofaonetimeDao.deleteObejct(form);
		findByList();
		return SUCCESS;
	}

	public String updateObject(){
		tabSuccessfuldeliveryofaonetimeDao.updateObject(form);
		return "update";
	}

	
}
